'use strict';

function average_uneven(collection) {

  let odd = collection.filter( (x) =>{
    return x%2!=0
  })
  let sum = odd.reduce(
    (a,b) => a+b
  )
  let result = sum / odd.length;
  return result;
}

module.exports = average_uneven;
